import axios from '../utils/request';
// 注册接口
export function userRegistered(data){
    return axios({
        url:'/reg',
        method:'post',
        data
    })
}
// 登录接口
export function userLogin(username,password){
    return axios({
        url:'/login',
        method:'post',
        data:{
            username,password
        }
    })
}
// 退出登录接口
export function userLogout(){
    return axios({
        url:'/logout',
        method:'POST',
    })
}